import Vue from 'vue'
import Vuex from 'vuex'
import vuexP from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userList:[]
  },
  getters: {
  },
  mutations: {
    // 获取
    setUserList(state,data){
       state.userList = data
    }
  },
  actions: {
  },
  modules: {
  },
  plugins:[vuexP()]
})
